package com.toggery.POS.tool;

public class PasswordUtil {
    public static String getPassword(String userId,String password){
        return MD5Tool.getMd5(password+ SaltFigure.getSaltFigure(userId));
    }
    //初始密码，用来管理员恢复密码的
    public static String getOriginalPassword(String userId){
        return MD5Tool.getMd5("123"+ SaltFigure.getSaltFigure(userId));
    }
    public static void main(String[] args) {
        //测试
//        System.out.println(getOriginalPassword("201525"));
        System.out.println(getPassword("kepper","123"));
    }
}
